//
//  IdCardInfoRectUtil.h
//  YHOCR
//
//  Created by 杨杨子 on 2018/7/24.
//  Copyright © 2018年 杨杨子. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NameRect:NSObject

@property (nonatomic,assign) CGFloat left;
@property (nonatomic,assign) CGFloat top;
@property (nonatomic,assign) CGFloat right;
@property (nonatomic,assign) CGFloat bottom;
@property (nonatomic,strong) NSString *name;

-(instancetype)initWithLeft:(CGFloat)left top:(CGFloat)top right:(CGFloat)right bottom:(CGFloat)bottom name:(NSString *)name;

//-(CGFloat)width;
//
//-(CGFloat)height;

@end

@interface IdCardInfoRectUtil : NSObject
/**
 * 根据比例缩放位置信息
 */
-(NSArray <NameRect *>*)scaleAllRect:(NSArray <NameRect *>*)rectList AndScale:(float)scale;
/**
 * 获取正面标准位置信息
 */
-(NSArray <NameRect *>*)getFrontStandardRectList;
/**
 * 根据提供的rect尺寸获取对应的缩放后的信息位置
 */
-(NSArray <NameRect *>*)getFrontScaleRectList:(CGRect)rect;

@end
